Skip to content

feat: onramp#323

Merged
ignaciosantise merged 97 commits intodevelopfrom
feat/onramp
Jul 23, 2025
Merged

feat: onramp#323
ignaciosantise merged 97 commits intodevelopfrom
feat/onramp

Conversation

@ignaciosantise
Copy link
Copy Markdown
Collaborator

Summary

Added onramp feature for Universal and EOA wallets

Comment on lines +72 to +75
} catch (error) {
// Look for error text directly if no test ID is present
await expect(this.page.getByText(/Amount/i)).toBeVisible({ timeout: 5000 });
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low test

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +85 to +88
} catch (error) {
// Try alternative text
await expect(this.page.getByText('Select Currency')).toBeVisible({ timeout: 5000 });
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low test

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +226 to +231
} catch (error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_COUNTRIES,
message: 'Failed to load countries'
};
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +247 to +252
} catch (error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_COUNTRIES,
message: 'Failed to load countries defaults'
};
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +328 to +335
} catch (error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_CURRENCIES,
message: 'Failed to load crypto currencies'
};
state.purchaseCurrencies = [];
state.purchaseCurrency = undefined;
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +371 to +378
} catch (error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_CURRENCIES,
message: 'Failed to load fiat currencies'
};
state.paymentCurrencies = [];
state.paymentCurrency = undefined;
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +525 to +531
} catch (error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_LIMITS,
message: 'Failed to load fiat limits'
};
state.paymentCurrenciesLimits = [];
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +622 to +629
} catch (error) {
if (!state.error) {
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD,
message: 'Failed to load onramp data'
};
}
} finally {

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +190 to +192
} catch (error) {
return 'US';
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Comment on lines +135 to +140
} catch (jsonError) {
// If JSON parsing fails, fall back to text
const errorText = await response.text();

return Promise.reject(`Code: ${response.status} - ${response.statusText} - ${errorText}`);
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
Comment on lines +141 to +147
} catch (error) {
state.loading = false;
state.error = {
type: OnRampErrorType.FAILED_TO_LOAD_COUNTRIES,
message: 'Failed to load countries'
};
}

Check notice

Code scanning / SonarCloud

Exceptions should not be ignored Low

Handle this exception or don't catch it at all. See more on SonarQube Cloud
cursor[bot]

This comment was marked as outdated.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: String Capitalization Behavior Change

The StringUtil.capitalize function now converts all characters after the first to lowercase. This is a breaking change, as it previously only capitalized the first character while preserving the original casing of the rest of the string. This affects existing functionality where original casing was expected (e.g., "iPhone" becomes "Iphone", "hELLO" becomes "Hello").

packages/common/src/utils/StringUtil.ts#L6-L7

return value.charAt(0).toUpperCase() + value.slice(1).toLowerCase();

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

@ignaciosantise ignaciosantise requested a review from jakubuid July 23, 2025 17:23
@ignaciosantise ignaciosantise merged commit 7569d39 into develop Jul 23, 2025
10 checks passed
@ignaciosantise ignaciosantise deleted the feat/onramp branch July 23, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants